		</div><!-- end content -->
	</div><!-- end weibo -->

	<!-- toolbar tabs -->
	<div class="tabs">
		<a <php>if(ACTION_NAME=='index'){echo 'class="current"';}</php> class="homei" href="{:U('w3g/Index/index')}" urn="home">首页</a>
		<a <php>if(ACTION_NAME=='atMe'){echo 'class="current"';}</php> class="atmei" href="{:U('w3g/Index/atMe')}" urn="atme">消息</a>
		<a <php>if(ACTION_NAME=='replyMe'){echo 'class="current"';}</php> class="commenti" href="{:U('w3g/Index/replyMe')}" urn="comment">评论</a>
		<a <php>if(ACTION_NAME=='publicsquare'){echo 'class="current"';}</php> class="squarei" href="{:U('w3g/Index/publicsquare')}" urn="square">广场</a>
		<a <php>if(ACTION_NAME=='more'){echo 'class="current"';}</php> class="morei" href="{:U('w3g/Index/more')}" urn="more">更多</a>
	</div>

	</div><!-- end container -->
</div><!-- end chrome -->
<script language="javascript">

(function(){
	document.querySelector("#container .tabs").addEventListener("click", function(event){
		var screenId = event.target.getAttribute("href");
		if(screenId){
			showScreen(screenId.slice(1));

			Array.prototype.forEach.call(this.children, function(tab){
				tab.className = "";
			});
			event.target.className = "current";
		}
	}, false);

	var hash = location.hash.slice(1);
	showScreen(hash || "weibo");
	tab = document.querySelector('#container .tabs [href="' +  location.hash + '"]');
	if(tab){
		Array.prototype.forEach.call(tab.parentNode.children, function(tab){
			tab.className = "";
		});
		tab.className = "current";
	}
}())
</script>
</body>
</html>